import Vue from 'vue';
import Vuex from 'vuex';
import state from './state';
import getters from './getters';
import actions from './actions';
import mutations from './mutations';
import goods from './modules/goods';
import user from './modules/user';
import address from './modules/address';
import invest from './modules/invest';

Vue.use(Vuex);

export default new Vuex.Store({
    state,
    getters,
    actions,
    mutations,
    modules: {
        goods,
        user,
        address,
        invest
    }
});